package com.sms.msger.msg.spring.implement;

import java.util.Map;

import com.sms.msger.msg.dao.IBlacklistDao;
import com.sms.msger.msg.dao.INotifyPhoneDao;
import com.sms.msger.msg.dao.INumconfigDao;
import com.sms.msger.msg.dao.IRouteDao;
import com.sms.msger.msg.dao.ITInvalidmsgDao;
import com.sms.msger.msg.dao.ITTaskDao;
import com.sms.msger.msg.dao.ITWaitsendDao;
import com.sms.msger.msg.dao.IUserInfoSmsDao;
import com.sms.msger.msg.dao.IWhitelistDao;
import com.sms.msger.msg.persistence.Blacklist;
import com.sms.msger.msg.persistence.NotifyPhone;
import com.sms.msger.msg.persistence.TInvalidmsg;
import com.sms.msger.msg.persistence.TNumconfig;
import com.sms.msger.msg.persistence.TRoute;
import com.sms.msger.msg.persistence.TTask;
import com.sms.msger.msg.persistence.TWaitsend;
import com.sms.msger.msg.persistence.UserInfoSms;
import com.sms.msger.msg.persistence.Whitelist;
import com.sms.msger.msg.spring.IMsgManager;

@SuppressWarnings("unchecked")
public class MsgManagerImpl implements IMsgManager {
	private ITTaskDao msgtTaskDao;
	private IWhitelistDao msgtWhitelistDao;
	private IBlacklistDao msgtBlacklistDao;
	private INotifyPhoneDao msgtNotifyPhoneDao;
	private INumconfigDao msgtNumconfigDao;
	private IUserInfoSmsDao msgtUserInfoSmsDao;
	private IRouteDao msgtRouteDao;
	private ITInvalidmsgDao msgtInvalidmsgDao;
	private ITWaitsendDao msgtWaitsendDao;
	public ITWaitsendDao getMsgtWaitsendDao() {
		return msgtWaitsendDao;
	}
	public void setMsgtWaitsendDao(ITWaitsendDao msgtWaitsendDao) {
		this.msgtWaitsendDao = msgtWaitsendDao;
	}
	
	public ITTaskDao getMsgtTaskDao() {
		return msgtTaskDao;
	}
	public void setMsgtTaskDao(ITTaskDao msgtTaskDao) {
		this.msgtTaskDao = msgtTaskDao;
	}
	public IWhitelistDao getMsgtWhitelistDao() {
		return msgtWhitelistDao;
	}
	public void setMsgtWhitelistDao(IWhitelistDao msgtWhitelistDao) {
		this.msgtWhitelistDao = msgtWhitelistDao;
	}
	public IBlacklistDao getMsgtBlacklistDao() {
		return msgtBlacklistDao;
	}
	public void setMsgtBlacklistDao(IBlacklistDao msgtBlacklistDao) {
		this.msgtBlacklistDao = msgtBlacklistDao;
	}
	public INotifyPhoneDao getMsgtNotifyPhoneDao() {
		return msgtNotifyPhoneDao;
	}
	public void setMsgtNotifyPhoneDao(INotifyPhoneDao msgtNotifyPhoneDao) {
		this.msgtNotifyPhoneDao = msgtNotifyPhoneDao;
	}
	public INumconfigDao getMsgtNumconfigDao() {
		return msgtNumconfigDao;
	}
	public void setMsgtNumconfigDao(INumconfigDao msgtNumconfigDao) {
		this.msgtNumconfigDao = msgtNumconfigDao;
	}
	public IUserInfoSmsDao getMsgtUserInfoSmsDao() {
		return msgtUserInfoSmsDao;
	}
	public void setMsgtUserInfoSmsDao(IUserInfoSmsDao msgtUserInfoSmsDao) {
		this.msgtUserInfoSmsDao = msgtUserInfoSmsDao;
	}
	
	public IRouteDao getMsgtRouteDao() {
		return msgtRouteDao;
	}
	public void setMsgtRouteDao(IRouteDao msgtRouteDao) {
		this.msgtRouteDao = msgtRouteDao;
	}
	
	public ITInvalidmsgDao getMsgtInvalidmsgDao() {
		return msgtInvalidmsgDao;
	}
	public void setMsgtInvalidmsgDao(ITInvalidmsgDao msgtInvalidmsgDao) {
		this.msgtInvalidmsgDao = msgtInvalidmsgDao;
	}
	//-----------------------------------------------------------------
	public boolean addTask(TTask ca) {
		return msgtTaskDao.addTask(ca);
	}

	public TTask[] getTaskByMap(Map map) {
		return msgtTaskDao.getTaskByMap(map);
	}

	public TTask[] getTaskbyId(String taskid) {
		return msgtTaskDao.getTaskbyId(taskid);
	}

	public boolean updateTask(TTask ca) {
		return msgtTaskDao.updateTask(ca);
	}

	public Whitelist[] getWhitelistByUserId(String userId) {
		return msgtWhitelistDao.getWhitelistByUserId(userId);
	}

	public Blacklist[] getBlacklistByUserId(String userId) {
		return msgtBlacklistDao.getBlacklistByUserId(userId);
	}

	public NotifyPhone[] getAllNofityPhone() {
		return msgtNotifyPhoneDao.getAllNofityPhone();
	}

	public TNumconfig[] getTNumconfigByMap(Map map) {
		return msgtNumconfigDao.getTNumconfigByMap(map);
	}
	
	public UserInfoSms getUserInfoById(String userId) {
		return msgtUserInfoSmsDao.getUserInfoById(userId);
	}
	public TRoute[] getRouteByMap(Map map) {
		return msgtRouteDao.getRouteByMap(map);
	}

	public boolean addInvalidmsg(TInvalidmsg ca) {
		return msgtInvalidmsgDao.addInvalidmsg(ca);
	}
	
	public  TWaitsend[] getTWaitsendByCondition(String condition){
		return msgtWaitsendDao.getTWaitsendByCondition(condition);
	}
}